<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Button Callbacks</title>
  <script src="../../dist/jsoneditor.js"></script>
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
</head>
<body>

<div class='container'></div>

<script>
  var container = document.querySelector('.container');
  var schema = {
    'type': 'object',
    'title': 'test',
    'properties': {
      'search': {
        'type': 'button',
        'title': 'Search',
        'options': {
          'button': {
            'icon': 'search'
          }
        }
      }
    }
  }

  var editor = new JSONEditor(container, {
    iconlib: 'fontawesome5',
    schema: schema,
  });
</script>

</body>
</html>
